package com.company.project.service;

import com.company.project.pojo.village.Village;
import com.baomidou.mybatisplus.extension.service.IService;
import com.company.project.pojo.village.VillageDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 村庄 服务类
 * </p>
 *
 * @author 任建波
 * @since 2019-08-10
 */
public interface IVillageService extends IService<Village> {

    /**获取村庄列表*/
    List<VillageDTO> getVillageListByInstitutionId(Integer institutionId);
    /**根据管理区id和角色id获取村庄列表*/
    List<VillageDTO> getVillageListByInstitutionIdAndRoleId(@Param("roleId") Integer roleId, @Param("institutionId") Integer institutionId);
}
